projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb83875
)
Blackfin: jtag-console: fix timer usage
author
Mike Frysinger
<
[email protected]
>
Mon, 4 Jul 2011 23:25:07 +0000
(19:25 -0400)
committer
Mike Frysinger
<
[email protected]
>
Tue, 12 Jul 2011 06:17:46 +0000
(
02:17
-0400)
Reported-by: Graeme Russ <
[email protected]
>
Signed-off-by: Mike Frysinger <
[email protected]
>
arch/blackfin/cpu/jtag-console.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/cpu/jtag-console.c
b/arch/blackfin/cpu/jtag-console.c
index e0f2975603b67abd5785eac9ac99377237620245..a77358a88ae3c1dea4a952fdc5b3b989c0142e1d 100644
(file)
--- a/
arch/blackfin/cpu/jtag-console.c
+++ b/
arch/blackfin/cpu/jtag-console.c
@@
-48,11
+48,11
@@
static inline uint32_t bfin_read_emudat(void)
static bool jtag_write_emudat(uint32_t emudat)
{
static bool overflowed = false;
- ulong timeout = get_timer(0)
+ CONFIG_JTAG_CONSOLE_TIMEOUT
;
+ ulong timeout = get_timer(0);
while (bfin_read_DBGSTAT() & 0x1) {
if (overflowed)
return overflowed;
- if (
timeout < get_timer(0)
)
+ if (
get_timer(timeout) > CONFIG_JTAG_CONSOLE_TIMEOUT
)
overflowed = true;
}
overflowed = false;